Walkthrough: Creating and using a variable in a rule
Walkthrough: Creating and using a variable in a rule
This walkthrough will demonstrate how to create a variable and use it in a rule.
Source material
Take, for example, the following source material:
the claimant is eligible for a loan if the claimant’s annual income is more than $15000
Creating the variable
To create a variable to represent "the claimant’s annual income":
In Oracle Policy Modeling, double click the properties file in the Project Explorer to open it for editing.
On the Attributes tab, right-click and select New Attribute...
In the Public name field, enter "claimant_income".
In the Data type drop-down list, select Currency.
In the Text field, enter "the claimant’s annual income".
Click OK to create the variable.
Using the variable in a Word rule
To use this variable in a rule in your Word document:
In Oracle Policy Modeling, double click the Word rules file in the Project Explorer to open it for editing.
On a blank line, type "the claimant is eligible for a loan", then click the Conclusion button on the Oracle Policy Modeling toolbar or use the shortcut key Alt+C.
Place the cursor at the end of this line and press the Enter key to create a condition line.
Type "the claimant's annual income > 15000". Your rule should look like this: